#!/usr/bin/env python
# -*- coding:UTF-8 -*-
# Project: devops
#  Author: an00
#  Create: 2018/7/22 17:24

"""
server app相关URL定义
"""

from rest_framework.routers import DefaultRouter
from servers.views import ServerViewset, NetworkDeviceViewset, IPViewset, ServerAutoReportViewset

server_router = DefaultRouter()
server_router.register("server", ServerViewset, base_name='server')
server_router.register("autoreport", ServerAutoReportViewset, base_name='autoreport')
server_router.register("interface", NetworkDeviceViewset, base_name='interface')
server_router.register("ip", IPViewset, base_name='ip')
